/*
 * Flowable CMMN REST API
 * # flowable / flowəb(ə)l /    - a compact and highly efficient workflow and Business Process Management (BPM) platform for developers, system admins and business users.  - a lightning fast, tried and tested BPMN 2 process engine written in Java. It is Apache 2.0 licensed open source, with a committed community.  - can run embedded in a Java application, or as a service on a server, a cluster, and in the cloud. It integrates perfectly with Spring. With a rich Java and REST API, it is the ideal engine for orchestrating human or system activities.
 *
 * OpenAPI spec version: v1
 *
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */


package com.ibm.risk.irmp.workflow.client.flowable.model;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;

/**
 * CaseInstanceQueryRequest
 */

public class CaseInstanceQueryRequest {
  @JsonProperty("start")
  private Integer start = null;

  @JsonProperty("size")
  private Integer size = null;

  @JsonProperty("sort")
  private String sort = null;

  @JsonProperty("order")
  private String order = null;

  @JsonProperty("caseInstanceId")
  private String caseInstanceId = null;

  @JsonProperty("caseBusinessKey")
  private String caseBusinessKey = null;

  @JsonProperty("caseDefinitionId")
  private String caseDefinitionId = null;

  @JsonProperty("caseDefinitionKey")
  private String caseDefinitionKey = null;

  @JsonProperty("caseInstanceParentId")
  private String caseInstanceParentId = null;

  @JsonProperty("involvedUser")
  private String involvedUser = null;

  @JsonProperty("includeCaseVariables")
  private Boolean includeCaseVariables = null;

  @JsonProperty("variables")
  private List<QueryVariable> variables = null;

  @JsonProperty("tenantId")
  private String tenantId = null;

  @JsonProperty("tenantIdLike")
  private String tenantIdLike = null;

  @JsonProperty("withoutTenantId")
  private Boolean withoutTenantId = null;

  public CaseInstanceQueryRequest start(Integer start) {
    this.start = start;
    return this;
  }

   /**
   * Get start
   * @return start
  **/
  @ApiModelProperty(value = "")
  public Integer getStart() {
    return start;
  }

  public void setStart(Integer start) {
    this.start = start;
  }

  public CaseInstanceQueryRequest size(Integer size) {
    this.size = size;
    return this;
  }

   /**
   * Get size
   * @return size
  **/
  @ApiModelProperty(value = "")
  public Integer getSize() {
    return size;
  }

  public void setSize(Integer size) {
    this.size = size;
  }

  public CaseInstanceQueryRequest sort(String sort) {
    this.sort = sort;
    return this;
  }

   /**
   * Get sort
   * @return sort
  **/
  @ApiModelProperty(value = "")
  public String getSort() {
    return sort;
  }

  public void setSort(String sort) {
    this.sort = sort;
  }

  public CaseInstanceQueryRequest order(String order) {
    this.order = order;
    return this;
  }

   /**
   * Get order
   * @return order
  **/
  @ApiModelProperty(value = "")
  public String getOrder() {
    return order;
  }

  public void setOrder(String order) {
    this.order = order;
  }

  public CaseInstanceQueryRequest caseInstanceId(String caseInstanceId) {
    this.caseInstanceId = caseInstanceId;
    return this;
  }

   /**
   * Get caseInstanceId
   * @return caseInstanceId
  **/
  @ApiModelProperty(value = "")
  public String getCaseInstanceId() {
    return caseInstanceId;
  }

  public void setCaseInstanceId(String caseInstanceId) {
    this.caseInstanceId = caseInstanceId;
  }

  public CaseInstanceQueryRequest caseBusinessKey(String caseBusinessKey) {
    this.caseBusinessKey = caseBusinessKey;
    return this;
  }

   /**
   * Get caseBusinessKey
   * @return caseBusinessKey
  **/
  @ApiModelProperty(value = "")
  public String getCaseBusinessKey() {
    return caseBusinessKey;
  }

  public void setCaseBusinessKey(String caseBusinessKey) {
    this.caseBusinessKey = caseBusinessKey;
  }

  public CaseInstanceQueryRequest caseDefinitionId(String caseDefinitionId) {
    this.caseDefinitionId = caseDefinitionId;
    return this;
  }

   /**
   * Get caseDefinitionId
   * @return caseDefinitionId
  **/
  @ApiModelProperty(value = "")
  public String getCaseDefinitionId() {
    return caseDefinitionId;
  }

  public void setCaseDefinitionId(String caseDefinitionId) {
    this.caseDefinitionId = caseDefinitionId;
  }

  public CaseInstanceQueryRequest caseDefinitionKey(String caseDefinitionKey) {
    this.caseDefinitionKey = caseDefinitionKey;
    return this;
  }

   /**
   * Get caseDefinitionKey
   * @return caseDefinitionKey
  **/
  @ApiModelProperty(value = "")
  public String getCaseDefinitionKey() {
    return caseDefinitionKey;
  }

  public void setCaseDefinitionKey(String caseDefinitionKey) {
    this.caseDefinitionKey = caseDefinitionKey;
  }

  public CaseInstanceQueryRequest caseInstanceParentId(String caseInstanceParentId) {
    this.caseInstanceParentId = caseInstanceParentId;
    return this;
  }

   /**
   * Get caseInstanceParentId
   * @return caseInstanceParentId
  **/
  @ApiModelProperty(value = "")
  public String getCaseInstanceParentId() {
    return caseInstanceParentId;
  }

  public void setCaseInstanceParentId(String caseInstanceParentId) {
    this.caseInstanceParentId = caseInstanceParentId;
  }

  public CaseInstanceQueryRequest involvedUser(String involvedUser) {
    this.involvedUser = involvedUser;
    return this;
  }

   /**
   * Get involvedUser
   * @return involvedUser
  **/
  @ApiModelProperty(value = "")
  public String getInvolvedUser() {
    return involvedUser;
  }

  public void setInvolvedUser(String involvedUser) {
    this.involvedUser = involvedUser;
  }

  public CaseInstanceQueryRequest includeCaseVariables(Boolean includeCaseVariables) {
    this.includeCaseVariables = includeCaseVariables;
    return this;
  }

   /**
   * Get includeCaseVariables
   * @return includeCaseVariables
  **/
  @ApiModelProperty(value = "")
  public Boolean getIncludeCaseVariables() {
    return includeCaseVariables;
  }

  public void setIncludeCaseVariables(Boolean includeCaseVariables) {
    this.includeCaseVariables = includeCaseVariables;
  }

  public CaseInstanceQueryRequest variables(List<QueryVariable> variables) {
    this.variables = variables;
    return this;
  }

  public CaseInstanceQueryRequest addVariablesItem(QueryVariable variablesItem) {
    if (this.variables == null) {
      this.variables = new ArrayList<QueryVariable>();
    }
    this.variables.add(variablesItem);
    return this;
  }

   /**
   * Get variables
   * @return variables
  **/
  @ApiModelProperty(value = "")
  public List<QueryVariable> getVariables() {
    return variables;
  }

  public void setVariables(List<QueryVariable> variables) {
    this.variables = variables;
  }

  public CaseInstanceQueryRequest tenantId(String tenantId) {
    this.tenantId = tenantId;
    return this;
  }

   /**
   * Get tenantId
   * @return tenantId
  **/
  @ApiModelProperty(value = "")
  public String getTenantId() {
    return tenantId;
  }

  public void setTenantId(String tenantId) {
    this.tenantId = tenantId;
  }

  public CaseInstanceQueryRequest tenantIdLike(String tenantIdLike) {
    this.tenantIdLike = tenantIdLike;
    return this;
  }

   /**
   * Get tenantIdLike
   * @return tenantIdLike
  **/
  @ApiModelProperty(value = "")
  public String getTenantIdLike() {
    return tenantIdLike;
  }

  public void setTenantIdLike(String tenantIdLike) {
    this.tenantIdLike = tenantIdLike;
  }

  public CaseInstanceQueryRequest withoutTenantId(Boolean withoutTenantId) {
    this.withoutTenantId = withoutTenantId;
    return this;
  }

   /**
   * Get withoutTenantId
   * @return withoutTenantId
  **/
  @ApiModelProperty(value = "")
  public Boolean getWithoutTenantId() {
    return withoutTenantId;
  }

  public void setWithoutTenantId(Boolean withoutTenantId) {
    this.withoutTenantId = withoutTenantId;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    CaseInstanceQueryRequest caseInstanceQueryRequest = (CaseInstanceQueryRequest) o;
    return Objects.equals(this.start, caseInstanceQueryRequest.start) &&
        Objects.equals(this.size, caseInstanceQueryRequest.size) &&
        Objects.equals(this.sort, caseInstanceQueryRequest.sort) &&
        Objects.equals(this.order, caseInstanceQueryRequest.order) &&
        Objects.equals(this.caseInstanceId, caseInstanceQueryRequest.caseInstanceId) &&
        Objects.equals(this.caseBusinessKey, caseInstanceQueryRequest.caseBusinessKey) &&
        Objects.equals(this.caseDefinitionId, caseInstanceQueryRequest.caseDefinitionId) &&
        Objects.equals(this.caseDefinitionKey, caseInstanceQueryRequest.caseDefinitionKey) &&
        Objects.equals(this.caseInstanceParentId, caseInstanceQueryRequest.caseInstanceParentId) &&
        Objects.equals(this.involvedUser, caseInstanceQueryRequest.involvedUser) &&
        Objects.equals(this.includeCaseVariables, caseInstanceQueryRequest.includeCaseVariables) &&
        Objects.equals(this.variables, caseInstanceQueryRequest.variables) &&
        Objects.equals(this.tenantId, caseInstanceQueryRequest.tenantId) &&
        Objects.equals(this.tenantIdLike, caseInstanceQueryRequest.tenantIdLike) &&
        Objects.equals(this.withoutTenantId, caseInstanceQueryRequest.withoutTenantId);
  }

  @Override
  public int hashCode() {
    return Objects.hash(start, size, sort, order, caseInstanceId, caseBusinessKey, caseDefinitionId, caseDefinitionKey, caseInstanceParentId, involvedUser, includeCaseVariables, variables, tenantId, tenantIdLike, withoutTenantId);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class CaseInstanceQueryRequest {\n");

    sb.append("    start: ").append(toIndentedString(start)).append("\n");
    sb.append("    size: ").append(toIndentedString(size)).append("\n");
    sb.append("    sort: ").append(toIndentedString(sort)).append("\n");
    sb.append("    order: ").append(toIndentedString(order)).append("\n");
    sb.append("    caseInstanceId: ").append(toIndentedString(caseInstanceId)).append("\n");
    sb.append("    caseBusinessKey: ").append(toIndentedString(caseBusinessKey)).append("\n");
    sb.append("    caseDefinitionId: ").append(toIndentedString(caseDefinitionId)).append("\n");
    sb.append("    caseDefinitionKey: ").append(toIndentedString(caseDefinitionKey)).append("\n");
    sb.append("    caseInstanceParentId: ").append(toIndentedString(caseInstanceParentId)).append("\n");
    sb.append("    involvedUser: ").append(toIndentedString(involvedUser)).append("\n");
    sb.append("    includeCaseVariables: ").append(toIndentedString(includeCaseVariables)).append("\n");
    sb.append("    variables: ").append(toIndentedString(variables)).append("\n");
    sb.append("    tenantId: ").append(toIndentedString(tenantId)).append("\n");
    sb.append("    tenantIdLike: ").append(toIndentedString(tenantIdLike)).append("\n");
    sb.append("    withoutTenantId: ").append(toIndentedString(withoutTenantId)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}
